package cn.cfoodc.sharding.controller;

import cn.cfoodc.sharding.domain.TConfig;
import cn.cfoodc.sharding.service.TConfigService;
import cn.cfoodc.sharding.service.impl.TConfigServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 测试广播表
 */
@RestController
public class DemoConfig {

    private TConfigService tConfigService;
    @Autowired
    public DemoConfig(TConfigService tConfigService){
        this.tConfigService=tConfigService;
    }

    @GetMapping("/selectConfigAll")
    public List<TConfig> selectAll(){

        return tConfigService.selectAll();
    }


}
